﻿using AppService.IService.System_setting;
using Domain.Entity.System_setting;
using Domain.IRepository.System_setting;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace AppService.Service.System_setting
{

    [Dependency(ServiceLifetime.Scoped)]
    public class CompanyService : ICompanyService
    {

        public CompanyService(ICompanyRepository company)
        {
            this.company = company;
        }
        public ICompanyRepository company { get; set; }

        public bool AddCompany(Info_company info_Company)
        {
            return company.AddCompany(info_Company) > 0;
        }



        public Info_company GetCompany()
        {
            return company.GetById();
        }

        public bool UpdCompany(Info_company companys)
        {
            return company.UpdCompany(companys) > 0;
        }
    }
}
